Explicitly update widget a11y bounds when allocating
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 20 Apr 2020 16:10:40 +0000 (17:10 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 6 May 2020 18:27:45 +0000 (14:27 -0400)
commitcb94c7d69e93cb34ba9db7d4cd06a52848044492
tree9d4e215b2b71f52ffd90ba374476e0cf0cade7ce
parent82e92582bd1d852f6e9762609a3ee5a53f4a65d0
Explicitly update widget a11y bounds when allocating

The a11y machinery is using signal subscription to get notified of size
changes and notify listeners in turn. This is suboptimal for a couple of
reasons:

 - if something connects to the GtkWidget::size-allocate signal we need
   to emit it; currently, we have an optimization in place that will
   skip the signal emission if there are no handlers, and it would be
   nice to go through the fast path
 - the accessibility implementation is part of GTK, and should not go
   through additional hoops like any out-of-tree API consumer
gtk/a11y/gtkwidgetaccessible.c
gtk/a11y/gtkwidgetaccessibleprivate.h
gtk/gtkwidget.c